pin iocb through aio.
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 7 Mar 2019 01:22:54 +0000 (20:22 -0500)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 15 May 2019 22:07:16 +0000 (23:07 +0100)
commit2acc8ef63df038345944cb5e73e4cef1e14d9c28
tree28efdf76fd1ac08bbe6ce58c278549be85c65187
parent53aadd1b42ab727731513faa4a1752c489418cb5
pin iocb through aio.

commit b53119f13a04879c3bf502828d99d13726639ead upstream.

aio_poll() is not the only case that needs file pinned; worse, while
aio_read()/aio_write() can live without pinning iocb itself, the
proof is rather brittle and can easily break on later changes.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Cc: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name 0010-pin-iocb-through-aio.patch
fs/aio.c